<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>资产后台管理系统</title>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>

    <!-- Coze Chat SDK -->
    <script src="https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.10/libs/cn/index.js"></script>
    <script>
      // 初始化悬浮 AI 助手按钮
      window.addEventListener('DOMContentLoaded', function () {
        if (window.CozeWebSDK) {
          new window.CozeWebSDK.WebChatClient({
            config: {
              bot_id: '7524607849159311360',
            },
            componentProps: {
              title: 'AI 助手',
            },
            auth: {
              type: 'token',
              token: 'pat_pQjDO3M8C0lrBkhfpkFVi45Ls0OGP8FhPnHfJzWkw2PKLqoqetpQvlTOTyRNx29R',
              onRefreshToken: function () {
                return 'pat_pQjDO3M8C0lrBkhfpkFVi45Ls0OGP8FhPnHfJzWkw2PKLqoqetpQvlTOTyRNx29R';
              }
            }
          });
        }
      });
    </script>
  </body>
</html> 